<?php


require_once '../include/common.inc.php';

if (!checkAdmin()) {
	header("LOCATION:index.php");
	exit;
}

$menu_index = 3;
$page_title = 'JANSEN';
$guide_message = 'Info | Showroom Locator';
$alert_message = '';
$email = '';

getMyParam('action');
getMyParam('locator');
getMyParam('locatorzh');//

if ($action == "update") {
	//$aboutus = str_replace("\"", "'", $locator);	
	//$aboutuszh=str_replace("\"", "'", $locatorzh);	
	SetSystemtbValue('showroomlocator',addslashes($locator),addslashes($locatorzh));	
	$alert_message = 'update succeed.';
}

//$out_aboutuszh = getSystemValue('aboutuszh');
//echo $out_aboutuszh;

$abs=array();
$abs=getSystemArray();

$out_locator = stripslashes($abs['showroomlocatoren']);
$out_locatorzh = stripslashes($abs['showroomlocatorzh']);

$debug = 1;
debuginfo();


include_once(JANSEN_ROOT . 'admin/menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_i_showroomlocator');
require_once PrintEot('a_footer');
?>